package com.xteam.youin_supplier.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Curry on 2015-12-27.
 */
public class OnlineStation {

    /**
     * flag : true
     * data : {"sums":"4715元","qtys":"850.00L","list":[{"gasstation_id":1,"name":"承德1站","qty":"400.00L/2165元"},{"gasstation_id":2,"name":"上海1站","qty":"250.00L/1350元"},{"gasstation_id":3,"name":"重庆站2站","qty":"200.00L/1200元"}]}
     * msg : 成功
     */
    private boolean flag;
    private DataEntity data;
    private String msg;

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isFlag() {
        return flag;
    }

    public DataEntity getData() {
        return data;
    }

    public String getMsg() {
        return msg;
    }

    public class DataEntity {
        /**
         * sums : 4715元
         * qtys : 850.00L
         * list : [{"gasstation_id":1,"name":"承德1站","qty":"400.00L/2165元"},{"gasstation_id":2,"name":"上海1站","qty":"250.00L/1350元"},{"gasstation_id":3,"name":"重庆站2站","qty":"200.00L/1200元"}]
         */
        private String sums;
        private String qtys;
        private List<ListEntity> list = new ArrayList<>();

        public void setSums(String sums) {
            this.sums = sums;
        }

        public void setQtys(String qtys) {
            this.qtys = qtys;
        }

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public String getSums() {
            return sums;
        }

        public String getQtys() {
            return qtys;
        }

        public List<ListEntity> getList() {
            return list;
        }

        public class ListEntity {
            /**
             * gasstation_id : 1
             * name : 承德1站
             * qty : 400.00L/2165元
             */
            private int gasstation_id;
            private String name;
            private String qty;

            public void setGasstation_id(int gasstation_id) {
                this.gasstation_id = gasstation_id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setQty(String qty) {
                this.qty = qty;
            }

            public int getGasstation_id() {
                return gasstation_id;
            }

            public String getName() {
                return name;
            }

            public String getQty() {
                return qty;
            }
        }
    }
}
